package com.example.hello.service.impl;

import com.example.hello.entity.User;
import com.example.hello.mapper.UserMapper;
import com.example.hello.po.UserPo;
import com.example.hello.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2022-07-22
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Override
    public List<UserPo> getUserList() {
        return baseMapper.listUserPos();
    }

    @Override
    public UserPo getUserByName(String userName) {
        return baseMapper.getUserByName(userName);
    }

    @Override
    public String getPasswordByUser(String userName) {
        return baseMapper.getPasswordByName(userName);
    }
}
